From 62b8d7794d4efa5a8258a39a3330d08c733a311a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 3 Dec 2003 12:47:00 +0000 Subject: [PATCH] Actually send the delete query --- maintenance/remove-brokenlinks.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maintenance/remove-brokenlinks.php b/maintenance/remove-brokenlinks.php index 2023318e97..17886c7a12 100644 --- a/maintenance/remove-brokenlinks.php +++ b/maintenance/remove-brokenlinks.php @@ -48,15 +48,15 @@ while( $s = wfFetchObject( $res ) ) { while( $s = wfFetchObject( $res2 ) ) { $from = Title::makeTitle( $s->cur_namespace, $s->cur_title ); $xt = $from->getPrefixedText(); - echo "Found bad brokenlink to [[$tt]] from page #$s->cur_id [[$xt]]!\n"; + echo "Found bad brokenlink to [[$t]] from page #$s->cur_id [[$xt]]!\n"; $any = true; } wfFreeResult( $res2 ); if($any) { echo "Removing brokenlinks to [[$t]]...\n"; $sql3 = "DELETE FROM brokenlinks WHERE bl_to='$tt'"; - #$res3 = wfQuery( $sql3, DB_WRITE ); - echo "-- $sql3\n"; + $res3 = wfQuery( $sql3, DB_WRITE ); + #echo "-- $sql3\n"; } } else { echo "Illegal title?! Namespace $s->cur_namespace, title '$s->cur_title'\n"; -- 2.20.1